/*CodeBuilder v2.0.1 by 2022-05-19 12:40 */
using System;
using ASmile.ORM.Entitys;

namespace ASmile.DBModel
{
	public partial class Sys_ReportArg : EntityBase
	{
		private System.String _Id;
		/// <summary>
		/// Id
		/// </summary>
		[Entity(CNId, 0, true, IsPrimaryKey = true)]
		public System.String Id
		{
			get { return _Id; }
			set
			{
				if (!OnPropertyChanged(CNId, _Id, value)) return;
				_Id = value;
				SetFieldChanged(CNId) ;
			}
		}

		private System.String _MainId;
		/// <summary>
		/// MainId
		/// </summary>
		[Entity(CNMainId, 1, true)]
		public System.String MainId
		{
			get { return _MainId; }
			set
			{
				if (!OnPropertyChanged(CNMainId, _MainId, value)) return;
				_MainId = value;
				SetFieldChanged(CNMainId) ;
			}
		}

		private System.String _FormName;
		/// <summary>
		/// FormName
		/// </summary>
		[Entity(CNFormName, 2, true)]
		public System.String FormName
		{
			get { return _FormName; }
			set
			{
				if (!OnPropertyChanged(CNFormName, _FormName, value)) return;
				_FormName = value;
				SetFieldChanged(CNFormName) ;
			}
		}

		private System.String _Caption;
		/// <summary>
		/// 控件Label说明
		/// </summary>
		[Entity(CNCaption, 3, true)]
		public System.String Caption
		{
			get { return _Caption; }
			set
			{
				if (!OnPropertyChanged(CNCaption, _Caption, value)) return;
				_Caption = value;
				SetFieldChanged(CNCaption) ;
			}
		}

		private System.Int32 _OrderNo;
		/// <summary>
		/// 排序
		/// </summary>
		[Entity(CNOrderNo, 4, true)]
		public System.Int32 OrderNo
		{
			get { return _OrderNo; }
			set
			{
				if (!OnPropertyChanged(CNOrderNo, _OrderNo, value)) return;
				_OrderNo = value;
				SetFieldChanged(CNOrderNo) ;
			}
		}

		private System.Int32 _ToolStripNo;
		/// <summary>
		/// 工具栏编号(默认为：0)
		/// </summary>
		[Entity(CNToolStripNo, 5, true)]
		public System.Int32 ToolStripNo
		{
			get { return _ToolStripNo; }
			set
			{
				if (!OnPropertyChanged(CNToolStripNo, _ToolStripNo, value)) return;
				_ToolStripNo = value;
				SetFieldChanged(CNToolStripNo) ;
			}
		}

		private System.Int32 _ControlType;
		/// <summary>
		/// 控件名称
		/// </summary>
		[Entity(CNControlType, 6, true)]
		public System.Int32 ControlType
		{
			get { return _ControlType; }
			set
			{
				if (!OnPropertyChanged(CNControlType, _ControlType, value)) return;
				_ControlType = value;
				SetFieldChanged(CNControlType) ;
			}
		}

		private System.String _ControlTypeName;
		/// <summary>
		/// ControlTypeName
		/// </summary>
		[Entity(CNControlTypeName, 7, true)]
		public System.String ControlTypeName
		{
			get { return _ControlTypeName; }
			set
			{
				if (!OnPropertyChanged(CNControlTypeName, _ControlTypeName, value)) return;
				_ControlTypeName = value;
				SetFieldChanged(CNControlTypeName) ;
			}
		}

		private System.Boolean _IsSplit;
		/// <summary>
		/// 在控件后增加一个分隔符
		/// </summary>
		[Entity(CNIsSplit, 8, true)]
		public System.Boolean IsSplit
		{
			get { return _IsSplit; }
			set
			{
				if (!OnPropertyChanged(CNIsSplit, _IsSplit, value)) return;
				_IsSplit = value;
				SetFieldChanged(CNIsSplit) ;
			}
		}

		private System.Int32 _ControlWidth;
		/// <summary>
		/// 控件长度
		/// </summary>
		[Entity(CNControlWidth, 9, true)]
		public System.Int32 ControlWidth
		{
			get { return _ControlWidth; }
			set
			{
				if (!OnPropertyChanged(CNControlWidth, _ControlWidth, value)) return;
				_ControlWidth = value;
				SetFieldChanged(CNControlWidth) ;
			}
		}

		private System.String _ArgName;
		/// <summary>
		/// 参数名
		/// </summary>
		[Entity(CNArgName, 10, true)]
		public System.String ArgName
		{
			get { return _ArgName; }
			set
			{
				if (!OnPropertyChanged(CNArgName, _ArgName, value)) return;
				_ArgName = value;
				SetFieldChanged(CNArgName) ;
			}
		}

		private System.String _DataType;
		/// <summary>
		/// 参数的数据类型
		/// </summary>
		[Entity(CNDataType, 11, true)]
		public System.String DataType
		{
			get { return _DataType; }
			set
			{
				if (!OnPropertyChanged(CNDataType, _DataType, value)) return;
				_DataType = value;
				SetFieldChanged(CNDataType) ;
			}
		}

		private System.String _DataFormat;
		/// <summary>
		/// DataFormat
		/// </summary>
		[Entity(CNDataFormat, 12)]
		public System.String DataFormat
		{
			get { return _DataFormat; }
			set
			{
				if (!OnPropertyChanged(CNDataFormat, _DataFormat, value)) return;
				_DataFormat = value;
				SetFieldChanged(CNDataFormat) ;
			}
		}

		private System.String _DefaultValue;
		/// <summary>
		/// 缺省值，每一种类型缺省值意义不同
		/// </summary>
		[Entity(CNDefaultValue, 13)]
		public System.String DefaultValue
		{
			get { return _DefaultValue; }
			set
			{
				if (!OnPropertyChanged(CNDefaultValue, _DefaultValue, value)) return;
				_DefaultValue = value;
				SetFieldChanged(CNDefaultValue) ;
			}
		}

		private System.String _DataSource;
		/// <summary>
		/// 数据源，当参数为下拉列表时获取数据源的存储过程
		/// </summary>
		[Entity(CNDataSource, 14)]
		public System.String DataSource
		{
			get { return _DataSource; }
			set
			{
				if (!OnPropertyChanged(CNDataSource, _DataSource, value)) return;
				_DataSource = value;
				SetFieldChanged(CNDataSource) ;
			}
		}

		private System.String _Remark;
		/// <summary>
		/// Remark
		/// </summary>
		[Entity(CNRemark, 15)]
		public System.String Remark
		{
			get { return _Remark; }
			set
			{
				if (!OnPropertyChanged(CNRemark, _Remark, value)) return;
				_Remark = value;
				SetFieldChanged(CNRemark) ;
			}
		}

		private System.DateTime _AddTime;
		/// <summary>
		/// AddTime
		/// </summary>
		[Entity(CNAddTime, 16, true)]
		public System.DateTime AddTime
		{
			get { return _AddTime; }
			set
			{
				if (!OnPropertyChanged(CNAddTime, _AddTime, value)) return;
				_AddTime = value;
				SetFieldChanged(CNAddTime) ;
			}
		}

		private System.String _AddUserId;
		/// <summary>
		/// AddUserId
		/// </summary>
		[Entity(CNAddUserId, 17)]
		public System.String AddUserId
		{
			get { return _AddUserId; }
			set
			{
				if (!OnPropertyChanged(CNAddUserId, _AddUserId, value)) return;
				_AddUserId = value;
				SetFieldChanged(CNAddUserId) ;
			}
		}

		private System.String _AddHost;
		/// <summary>
		/// AddHost
		/// </summary>
		[Entity(CNAddHost, 18)]
		public System.String AddHost
		{
			get { return _AddHost; }
			set
			{
				if (!OnPropertyChanged(CNAddHost, _AddHost, value)) return;
				_AddHost = value;
				SetFieldChanged(CNAddHost) ;
			}
		}

		private System.DateTime? _LastTime;
		/// <summary>
		/// LastTime
		/// </summary>
		[Entity(CNLastTime, 19)]
		public System.DateTime? LastTime
		{
			get { return _LastTime; }
			set
			{
				if (!OnPropertyChanged(CNLastTime, _LastTime, value)) return;
				_LastTime = value;
				SetFieldChanged(CNLastTime) ;
			}
		}

		private System.String _LastHost;
		/// <summary>
		/// LastHost
		/// </summary>
		[Entity(CNLastHost, 20)]
		public System.String LastHost
		{
			get { return _LastHost; }
			set
			{
				if (!OnPropertyChanged(CNLastHost, _LastHost, value)) return;
				_LastHost = value;
				SetFieldChanged(CNLastHost) ;
			}
		}

		private System.String _LastUserId;
		/// <summary>
		/// LastUserId
		/// </summary>
		[Entity(CNLastUserId, 21)]
		public System.String LastUserId
		{
			get { return _LastUserId; }
			set
			{
				if (!OnPropertyChanged(CNLastUserId, _LastUserId, value)) return;
				_LastUserId = value;
				SetFieldChanged(CNLastUserId) ;
			}
		}

		#region 字段名的定义
		public const string CNId = "Id";
		public const string CNMainId = "MainId";
		public const string CNFormName = "FormName";
		public const string CNCaption = "Caption";
		public const string CNOrderNo = "OrderNo";
		public const string CNToolStripNo = "ToolStripNo";
		public const string CNControlType = "ControlType";
		public const string CNControlTypeName = "ControlTypeName";
		public const string CNIsSplit = "IsSplit";
		public const string CNControlWidth = "ControlWidth";
		public const string CNArgName = "ArgName";
		public const string CNDataType = "DataType";
		public const string CNDataFormat = "DataFormat";
		public const string CNDefaultValue = "DefaultValue";
		public const string CNDataSource = "DataSource";
		public const string CNRemark = "Remark";
		public const string CNAddTime = "AddTime";
		public const string CNAddUserId = "AddUserId";
		public const string CNAddHost = "AddHost";
		public const string CNLastTime = "LastTime";
		public const string CNLastHost = "LastHost";
		public const string CNLastUserId = "LastUserId";
		#endregion

	}
}
